<?php
/**
 * 制造
 * 
 * Created	: 2010-11-01
 * Modified : 2010-11-01
 * @author  : 陈立强
 */
class SMaking extends Making{
	
	/**
	 * 获取一个建筑信息
	 * @param int $uid
	 * @param int $type
	 */
	public static function getInfo($uid, $type=0)
	{
		global $L, $G;
		$info = parent::getInfo($uid, $type);
		if (!$info) {
			return array(
				'val' => false,
				'msg' => $L['Failure_Read']
			);
		} else {
			return array(
				'val' => true,
				'data' => array(
					'info' => $info,
					'shop_depot_free_grid' => Shop::getDepotFreeSpace($uid),
					'shop_depot_max_capacity'  => Shop::getDepotSpaceNum($uid)
				)
			);
		}
	}
	
	/**
	 * 制造产品
	 * @param int $uid
	 * @param string|int $class 类型:烹饪,饮品,酿酒...(cook,drink..)
	 * @param int $product 产品:面食,糕点...
	 * @param int $technics 工艺
	 * @param int $param 参数:火力,温度,酒精浓度
	 * @param array $main_mat 主材
	 * @param array $sec_mat 辅材
	 */
//	public static function make($uid, $class, $product, $technics, $param, $main_mat, $sec_mat)
//	{
//		return parent::make($uid, $class, $product, $technics, $param, $main_mat, $sec_mat);
//	}
}